
// A3_Create_basefile
//==============================================================================

// Description: This code merges all data in one file. This file is later used
// in creating summary statistics

clear
set more off
cd "D:\data_replication"

use estimation\3_aggregate_data\product_files\data_product_1.dta, clear
gen product_id = 1

forval k = 2/4221 {

display `k'
append using estimation\3_aggregate_data\product_files\data_product_`k'.dta
replace product_id = `k' if product_id == .

}

save estimation\3_aggregate_data\data_base.dta, replace


